package actions.members;

import actions.base.BaseAction;

public class New extends BaseAction {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7525060125539209762L;
	public String execute() {
		if (name!=null && name.length()>0)
		{
			System.out.println("name : " + name);
			services.createPerson(name);
			return redirect("Listing.action");
		}
		return "success";
	}
	
    String name;
    public String getName() {
    	return name;
    }
    public void setName(String value) {
    	name = value;
    }
}
